package ysy.Proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class MyIn implements InvocationHandler {
    private final People people;

    public MyIn(People people) {
        this.people=people;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        return method.invoke(people,args);
    }
}

